package com.monitor.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.monitor.entity.ErpTireArchives;

/**
 * <p>
 * 轮胎档案表 Mapper 接口
 * </p>
 *
 * @author LX
 * @since 2018-09-27
 */
public interface ErpTireArchivesMapper extends BaseMapper<ErpTireArchives> {
	@Select("SELECT * FROM erp_tire_archives WHERE tire_id=#{tireId} ORDER BY id desc limit 0,1")
	public ErpTireArchives selectByTireId(@Param("tireId")int tireId);
}
